<div class="panel panel-default">
	<div class="panel-heading"><i class="fa fa-fw fa-files-o"></i> <?php echo $page_title ?></div>
	<div class="panel-body">
		<?php foreach($post['query'] as $post_rec): ?>
			<?php  
			$post_id = $post_rec['jonu_post_id'];
			$post_tgl = substr($post_rec['jonu_post_date'], 8,2);
			$post_bln = substr($post_rec['jonu_post_date'], 5,2);
			$permalink = $post_bln.'/'.$post_tgl.'/'.$post_id.'/'.$post_rec['jonu_post_permalink'];						
			?>
			<div id="usr-panel-list">				
				<a href="<?php echo site_url("post/show/$permalink") ?>" class="post-title" target="_blank">
					<?php if($post_rec['jonu_post_status'] == "Published"): ?>
						<i class="fa fa-fw fa-check" title="Published"></i>
					<?php elseif($post_rec['jonu_post_status'] == "Pending"): ?>
						<i class="fa fa-fw fa-spinner" title="Pending"></i>
					<?php elseif($post_rec['jonu_post_status'] == "Blocked"): ?>
						<i class="fa fa-fw fa-ban" title="Blocked"></i>
					<?php endif; ?>
					<?php echo $post_rec['jonu_post_title'] ?>
				</a>
				<div class="post-detail">
					<span><i class="fa fa-fw fa-folder-open"></i> <?php echo $post_rec['jonu_post_view'] ?>x</span>
					<span><i class="fa fa-fw fa-calendar"></i> <?php echo substr($post_rec['jonu_post_date'], 0, strlen($post_rec['jonu_post_date'])-9) ?></span>
					<span><a href="<?php echo site_url("user/edit_post/$post_rec[jonu_post_id]") ?>"><i class="fa fa-fw fa-pencil"></i> Edit</a></span>
					<span><a href="<?php echo site_url("user/delete_post/$post_rec[jonu_post_id]") ?>"><i class="fa fa-fw fa-trash"></i> Delete</a></span>
				</div>
			</div>		
		<?php endforeach; ?>
		<div id="usr-pagination">
			<?php echo $post['halaman'] ?>
			<span id="tot-item"><?php echo "Total: ".$post['total']." Posts" ?></span>
		</div>
	</div>
</div>